Merged
Conversation
* fix: broken links y check script * chore: run pre-commit
* fix(config): agregar use_directory_urls para manejar URLs sin extensión - Configurar use_directory_urls: true en mkdocs.yml - Permite que URLs como /meetups/ funcionen correctamente - Mantiene compatibilidad con estructura de directorios de MkDocs * feat(infra): implementar CloudFront Function para URLs sin extensión - Agregar CloudFront Function url_rewrite para manejar URLs sin .html - Función redirige /meetups/ a /meetups/index.html automáticamente - Asociar función con todos los cache behaviors para consistencia - Soluciona problema de enlaces que no funcionan en producción * docs: agregar documentación para fix de URLs sin extensión - Documentar problema de URLs que no funcionan en producción - Explicar solución implementada con CloudFront Function - Incluir pasos de despliegue y verificación - Agregar notas técnicas sobre funcionamiento de la solución
…aging (#45) * fix(config): agregar use_directory_urls para manejar URLs sin extensión - Configurar use_directory_urls: true en mkdocs.yml - Permite que URLs como /meetups/ funcionen correctamente - Mantiene compatibilidad con estructura de directorios de MkDocs * feat(infra): implementar CloudFront Function para URLs sin extensión - Agregar CloudFront Function url_rewrite para manejar URLs sin .html - Función redirige /meetups/ a /meetups/index.html automáticamente - Asociar función con todos los cache behaviors para consistencia - Soluciona problema de enlaces que no funcionan en producción * docs: agregar documentación para fix de URLs sin extensión - Documentar problema de URLs que no funcionan en producción - Explicar solución implementada con CloudFront Function - Incluir pasos de despliegue y verificación - Agregar notas técnicas sobre funcionamiento de la solución * feat(infra): aplicar CloudFront Function a staging environment - Agregar función url_rewrite a todos los cache behaviors de staging - Reutilizar la misma CloudFront Function global para consistencia - Soluciona problema de URLs sin extensión en staging.pythoncdmx.org - Mantiene configuración de cache más agresiva para staging * docs: actualizar documentación con soporte para staging - Agregar información sobre configuración de staging - Incluir URLs de verificación para ambos ambientes - Documentar que la misma CloudFront Function se reutiliza
Add CloudFront Functions to rewrite directory URLs to include index.html. This fixes 404 errors on pages like /meetups/, /comunidad/ponentes/, etc. Changes: - Add CloudFront Function for production and staging environments - Associate functions with default cache behavior on distributions - Add comprehensive documentation in FIX_404_ERRORS.md The solution uses CloudFront Functions to intercept viewer requests and automatically append index.html to URLs ending with / or without file extensions, enabling MkDocs directory URLs to work correctly with S3/CloudFront. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Merge changes from staging branch and fix the URL rewriting logic to correctly handle MkDocs directory URLs. Changes: - Merge staging branch (commits a111f61, e9b294a) - Remove duplicate cloudfront-function.tf (use unified url_rewrite function) - Fix url_rewrite function: change '.html' to '/index.html' for URLs without extension - Update documentation to reflect correct behavior - Integrate mkdocs.yml changes from staging The corrected logic now properly handles MkDocs use_directory_urls: - /meetups → /meetups/index.html (was incorrectly /meetups.html) - /meetups/ → /meetups/index.html (already correct) This ensures all directory URLs work correctly in both production and staging. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Fix/error 404
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Descripción
Breve descripción de los cambios realizados en este PR.
🎯 Tipo de Cambio
🔗 Issues Relacionados
Closes #[número del issue]
Relacionado con #[número del issue]
📋 Cambios Realizados
🧪 Pruebas Realizadas
mkdocs build)mkdocs serve)📸 Capturas de Pantalla
Si este PR incluye cambios visuales, incluye capturas de pantalla:
Antes
Después
🔍 Checklist
📝 Notas Adicionales
Agrega cualquier contexto adicional sobre el PR aquí.
🤝 ¿Necesitas ayuda?
Si tienes preguntas sobre este PR o necesitas ayuda, no dudes en preguntar en los comentarios.
Gracias por contribuir a Python CDMX Charlas! 🐍